

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Yozeev.SystemConfig;

namespace Yozeev.EntityMapper.ClientVersions
{
    public class ClientVersionCfg : IEntityTypeConfiguration<ClientVersion>
    {
        public void Configure(EntityTypeBuilder<ClientVersion> builder)
        {

            builder.ToTable("ClientVersions", YoYoAbpefCoreConsts.SchemaNames.Basic);

            
			builder.Property(a => a.AppName).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.VersionName).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.VersionCode).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.VersionDesc).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.DeviceType).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);


        }
    }
}


